package com.yjq.programmer.dto;

import com.yjq.programmer.annotation.ValidateEntity;

import java.util.Date;

/**
 * @author 杨杨吖
 * @QQ 823208782
 * @WX yjqi12345678
 * @create 2022-11-11 16:00
 */
public class MusicDTO {

    private String id;

    @ValidateEntity(required=true,requiredMaxLength=true,requiredMinLength=true,maxLength=32,minLength=1,errorRequiredMsg="音乐名称不能为空！",errorMaxLengthMsg="音乐名称长度不能大于32！",errorMinLengthMsg="音乐名称不能为空！")
    private String name;

    private String singerName;

    private String albumName;

    private Date createTime;

    private Integer collectNum;

    private String coverPhoto;

    private Integer commentNum;

    @ValidateEntity(required=true,errorRequiredMsg="音乐所属歌手不能为空！")
    private String singerId;

    private Integer listenNum;

    @ValidateEntity(required=true,errorRequiredMsg="音乐所属专辑不能为空！")
    private String albumId;

    private String file;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSingerName() {
        return singerName;
    }

    public void setSingerName(String singerName) {
        this.singerName = singerName;
    }

    public String getAlbumName() {
        return albumName;
    }

    public void setAlbumName(String albumName) {
        this.albumName = albumName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCollectNum() {
        return collectNum;
    }

    public void setCollectNum(Integer collectNum) {
        this.collectNum = collectNum;
    }

    public String getCoverPhoto() {
        return coverPhoto;
    }

    public void setCoverPhoto(String coverPhoto) {
        this.coverPhoto = coverPhoto;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public String getSingerId() {
        return singerId;
    }

    public void setSingerId(String singerId) {
        this.singerId = singerId;
    }

    public Integer getListenNum() {
        return listenNum;
    }

    public void setListenNum(Integer listenNum) {
        this.listenNum = listenNum;
    }

    public String getAlbumId() {
        return albumId;
    }

    public void setAlbumId(String albumId) {
        this.albumId = albumId;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", singerName=").append(singerName);
        sb.append(", albumName=").append(albumName);
        sb.append(", createTime=").append(createTime);
        sb.append(", collectNum=").append(collectNum);
        sb.append(", coverPhoto=").append(coverPhoto);
        sb.append(", commentNum=").append(commentNum);
        sb.append(", singerId=").append(singerId);
        sb.append(", listenNum=").append(listenNum);
        sb.append(", albumId=").append(albumId);
        sb.append(", file=").append(file);
        sb.append("]");
        return sb.toString();
    }
}
